다른 예제코드는 업로드가 되는데, 블루투스만 업로드가 안되고 아래와 같이 오류문구가 뜹니다.
어떻게 하면 되나요??
아두이노:1.8.13 (Windows 10), 보드:"Arduino Uno"
3_Bluetooth:3:16: error: redefinition of 'SoftwareSerial bluetooth'
C:UsersuserDesktop아두이노[3] 예제코드[2] 교육용 메탈 RC카3_Bluetooth3_Bluetooth.ino:22:26: note: in expansion of macro 'BT_RXD'
C:UsersuserDesktop아두이노[3] 예제코드[2] 교육용 메탈 RC카3_Bluetooth3_Bluetooth.ino:5:16: note: 'SoftwareSerial bluetooth' previously declared here
C:UsersuserDesktop아두이노[3] 예제코드[2] 교육용 메탈 RC카3_Bluetooth3_Bluetooth.ino: In function 'void setup()':
3_Bluetooth:34:6: error: redefinition of 'void setup()'
C:UsersuserDesktop아두이노[3] 예제코드[2] 교육용 메탈 RC카3_Bluetooth3_Bluetooth.ino:7:6: note: 'void setup()' previously defined here
3_Bluetooth:43:3: error: 'motor_L' was not declared in this scope
3_Bluetooth:44:15: error: 'RELEASE' was not declared in this scope
3_Bluetooth:45:3: error: 'motor_R' was not declared in this scope
C:UsersuserDesktop아두이노[3] 예제코드[2] 교육용 메탈 RC카3_Bluetooth3_Bluetooth.ino: In function 'void loop()':
3_Bluetooth:50:6: error: redefinition of 'void loop()'
C:UsersuserDesktop아두이노[3] 예제코드[2] 교육용 메탈 RC카3_Bluetooth3_Bluetooth.ino:12:6: note: 'void loop()' previously defined here
3_Bluetooth:59:6: error: 'motor_L' was not declared in this scope
3_Bluetooth:59:18: error: 'FORWARD' was not declared in this scope
3_Bluetooth:59:29: error: 'motor_R' was not declared in this scope
3_Bluetooth:62:6: error: 'motor_L' was not declared in this scope
3_Bluetooth:62:18: error: 'BACKWARD' was not declared in this scope
3_Bluetooth:62:30: error: 'motor_R' was not declared in this scope
3_Bluetooth:65:4: error: 'motor_L' was not declared in this scope
3_Bluetooth:65:16: error: 'RELEASE' was not declared in this scope
3_Bluetooth:65:27: error: 'motor_R' was not declared in this scope
3_Bluetooth:65:39: error: 'FORWARD' was not declared in this scope
3_Bluetooth:68:5: error: 'motor_L' was not declared in this scope
3_Bluetooth:68:17: error: 'FORWARD' was not declared in this scope
3_Bluetooth:68:28: error: 'motor_R' was not declared in this scope
3_Bluetooth:68:40: error: 'RELEASE' was not declared in this scope
3_Bluetooth:71:6: error: 'motor_L' was not declared in this scope
3_Bluetooth:71:18: error: 'BACKWARD' was not declared in this scope
3_Bluetooth:71:31: error: 'motor_R' was not declared in this scope
3_Bluetooth:71:43: error: 'FORWARD' was not declared in this scope
3_Bluetooth:74:7: error: 'motor_L' was not declared in this scope
3_Bluetooth:74:19: error: 'FORWARD' was not declared in this scope
3_Bluetooth:74:31: error: 'motor_R' was not declared in this scope
3_Bluetooth:74:43: error: 'BACKWARD' was not declared in this scope
3_Bluetooth:77:5: error: 'motor_L' was not declared in this scope
3_Bluetooth:77:17: error: 'RELEASE' was not declared in this scope
3_Bluetooth:77:33: error: 'motor_R' was not declared in this scope
3_Bluetooth:84:11: error: 'motor_L' was not declared in this scope
3_Bluetooth:84:33: error: 'motor_R' was not declared in this scope
exit status 1
redefinition of 'SoftwareSerial bluetooth'
이 리포트는 파일 -> 환경설정에 "컴파일중 자세한 출력보이기"를
활성화하여 더 많은 정보를
보이게 할 수 있습니다.
예제 제목은 블루투스 예제인데 모터 변수가 나온 걸로 봐서는 직접 타이핑 하신 것 같은데 맞나요??
직접 타이핑시 눈에 띄지 않는 오타가 있을 수 있어요
예제 그대로 실행해보세요